//
//  DeViewController.m
//  数码时代App
//
//  Created by dlios on 15-1-4.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "DeViewController.h"
#import "FourModel.h"
@interface DeViewController ()
{
    UIWebView *WebView;
}
@end

@implementation DeViewController
-(void)dealloc
{
    [_model release];
    [_arr release];
    [super dealloc];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view setBackgroundColor:[UIColor whiteColor]];
    [self creatView];
    // Do any additional setup after loading the view.
}
-(instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
        self.arr = [NSMutableArray array];
        
    }
    return self;
}
-(void)creatView
{
    WebView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    [self.view addSubview: WebView];
   
        NSString *str = [NSString stringWithFormat:@"http://mrobot.pconline.com.cn/v2/itbbs/topics/%@",self.model.topicId];
        NSString *string = [NSString stringWithFormat:@"%@?pageNo=1&picRule=2&authorId=0&topicTemplate=3.6.0&app=pconlinebrowser&appVersion=3.10.0&size=18",str];
        NSURLRequest *request =[NSURLRequest requestWithURL:[NSURL URLWithString:string]];
        [WebView loadRequest:request];
    [WebView setScalesPageToFit:YES];
    [WebView release];
}
-(void)getFourModel:(FourModel*)model Array:(NSMutableArray*)array
{
    
    self.model = model;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
